local ball = class('ball',function()
	return display.newNode()
end)

function ball:ctor(x,y)
	local sprite = display.newSprite('CloseNormal.png'):addTo(self)
	sprite:setColor(cc.c3b(126,100,126))
	self.body = cc.PhysicsBody:createCircle(20)
	sprite:setPhysicsBody(self.body)
	self.body:setCategoryBitmask(1)
	self.body:setCollisionBitmask(5)
	self.body:setContactTestBitmask(5)
	self.body:setTag(100)

	--self.body:retain()
	--print(x,y) 		--测试new的参数

	--printf('ball.body:setCategoryBitmask = %d',self.body:getCategoryBitmask())

end

return ball